﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include "stable.h"
#include <QMainWindow>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

public slots:
    void on_camview_closed(void);

private slots:
    void on_pushButton_preview_toggled(bool checked);
    void on_comboBox_cam_currentIndexChanged(int index);

    void on_pushButton_start_toggled(bool checked);

private:
    Ui::MainWindow *ui;
    QCamera *camera;
    QCameraViewfinder *viewfinder;
    int camera_idx;
};

#endif // MAINWINDOW_H
